// navigation/navigation/navigation.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    backShow:{
      type:Boolean,
      value:false
    },
    titleColor:{
      type:String,
      value:"#000"
    },
    backColor:{
      type:Number,
      value:1
    },
    title:{
      type:String,
      value:"标题"
    },
    backgroundColor:{
      type:String,
      value:"#ffffff"
    },
    backgroundImg:{
      type:String,
      value:""
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
  },
  attached: function () {
    console.log(this.properties.backShow)
    wx.getSystemInfo({
      success: (result) => {
        console.log(result);
        this.setData({
          statusBarHeight: result.statusBarHeight,
          screenHeight: 44+result.statusBarHeight
        })
      },
    });
  },
  /**
   * 组件的方法列表
   */
  methods: {
    click_to_last:function(){
      wx.navigateBack({
        delta: 1,
      })
    },
    click_to_home:function(){
      wx.navigateBack({
        delta: 10,
      })
    }
  }
})